<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        $categories = [
            [
                'cname'        => '煤矿',
                'pid' => 0,
                'description' => '煤矿视频',
            ],
            [
                'cname'        => '教育',
                'pid' => 0,
                'description' => '教育视频',
            ],
            [
                'cname'        => '医疗',
                'pid' => 0,
                'description' => '医疗视频',
            ],

        ];
        DB::table('categories')->insert($categories);
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
};
